package cn.edu.buaa.nlsde.mpj.fw.model.procedure;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Victor
 * Date: 13-6-10
 * Time: 下午8:07
 * To change this template use File | Settings | File Templates.
 */
public class Procedures {
    private Map<String, Procedure> collection;

    public Procedures() {
        collection = new HashMap<String, Procedure>();
    }

    public void put(String name, Procedure procedure) {
        collection.put(name, procedure);
    }

    public void remove(String name) {
        collection.remove(name);
    }

    public int size() {
        return collection.size();
    }

    public Procedure getProcedure(String name) {
        return collection.get(name);
    }

    public Map<String, Procedure> collection() {
        return collection;
    }
}
